import { useNavigate, useParams } from 'react-router-dom'
import { NavBar } from 'antd-mobile'

export default function Home (props) {
  const Navigate = useNavigate()
  const back = () => Navigate(-1)
  return (
    <div>
      <NavBar onBack={back} style={{ background: '#FF6C50', color: '#fff' }}>
        {/* 父传子接收到的数据 */}
        {props.title}
      </NavBar>
    </div>
  )
}
